import request from '@/utils/request';

const flowPrefix = '/doubleStack/flowAnalysis';

export function getOptionalField() {
  return request({
    url: flowPrefix + '/getOptionalField',
    method: 'GET',
  });
}

export function getTableData(data) {
  console.debug(JSON.stringify(data));
  return request({
    url: flowPrefix + '/selectFlowList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8',
    },
    data: JSON.stringify(data),
  });
}
